'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 来袭
 * @author sundbcn@gmail.com (sun debing)
 */

var _ = require('lodash');
var rebelConf = require('../config/rebelConf');
var genRewardService = require('./genRewardService');

/**
 * 获取伤害的奖励
 * @param  {[type]} hurt [description]
 * @return {[type]}      [description]
 */
exports.getRewardList = function (rebel_id) {
    var reward_list = [];
    var reward_conf_list = rebelConf.getRebelRewardConf(rebel_id);
    _.each(reward_conf_list, function (reward_conf) {
        reward_list.push(genRewardService.generateReward(reward_conf));
    });
    return reward_list;
};
